package com.wujie.liu.section03;

/**
 * Created by wujieliu on 2018/1/18.
 */
class Cup {
    Cup(int maker) {
        System.out.println("Cup(" + maker + ")");
    }

    void f(int maker) {
        System.out.println("f(" + maker + ")");
    }
}

class Cups {
    static Cup cup1;
    static Cup cup2;

    static {
        cup1 = new Cup(1);
        cup2 = new Cup(2);
    }

    Cups() {
        System.out.println("Cups()");
    }
}

public class ExplicitStatic {
    public static void main(String[] args) {

        Integer[] integer1 = new Integer[23];
        for (int i :
                integer1) {
            System.out.println(i);
        }

        System.out.println("Inside main()");
        Cups.cup1.f(99);
    }

//    static Cups cups1 = new Cups();
//    static Cups cups2 = new Cups();
}
